﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace SIG.InputModel.Admin
{
  public  class ProductPageMetaDTO
    {
        public int Id { get; set; }
        [Display(Name = "产品型号", Prompt = "产品型号")]
        [Required(ErrorMessage = "请输入产品型号")]
        public string ProductNo { get; set; }
        [Display(Name = "产品名称", Prompt = "产品名称")]
        [Required(ErrorMessage = "请输入产品名称")]
        public string ProductName { get; set; }


        [Display(Name = "产品描述", Prompt = "产品描述")]
        [AllowHtml]
        public string Body { get; set; }

        [Display(Name = "摘要", Prompt = "摘要")]
        public string Description { get; set; }


        [Display(Name = "缩略图", Prompt = "缩略图")]
        public string Thumbnail { get; set; }


        [Display(Name = "显示")]
        public bool Active { get; set; }
        [Display(Name = "推荐")]
        public bool Recommend { get; set; }

        public int ViewCount { get; set; }
        
        //public string CategoryIds { get; set; }

        [Display(Name = "产品分类")]
        public string[] PostCategoryIds { get; set; }


        [Display(Name = "关键字", Prompt = "关键字")]
        public string Keywords { get; set; }

        [Display(Name = "SEO描述", Prompt = "SEO描述")]
        public string SEODescription { get; set; }

        [Display(Name = "创建日期")]
        [ScaffoldColumn(false)]
        public DateTime CreatedDate { get; set; }

        [Display(Name = "创建者")]
        [MaxLength(256)]
        [ScaffoldColumn(false)]
        public string CreatedBy { get; set; }

        [Display(Name = "最后修改时间")]
        [ScaffoldColumn(false)]
        public DateTime UpdatedDate { get; set; }
        [Display(Name = "最后修改者")]
        [MaxLength(256)]
        [ScaffoldColumn(false)]
        public string UpdatedBy { get; set; }

    }
}
